package cn.jinjimi.app.presenter;

import cn.jinjimi.app.interfaces.IView;

import org.greenrobot.eventbus.EventBus;
import org.greenrobot.eventbus.Subscribe;
import org.greenrobot.eventbus.ThreadMode;

/**
 * 有进行网络请求的控制器
 *
 * Created by Jinsen on 2015/9/7.
 */
public class NetBasePresenter implements IXrkPresenter{

    public NetBasePresenter(IView view){
        onCreate();
    }

    @Override
    public void onCreate() {
        EventBus.getDefault().register(this);
    }

    @Subscribe(threadMode = ThreadMode.MAIN)
    public void onObject(Object obj) {
    }

    @Override
    public void onDestroy() {
        EventBus.getDefault().unregister(this);
    }
}
